package com.yin.myproject.logger.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Eason on 2017/6/5.
 */
public class LoggerBackSample {
    private static Logger LOGGER = LoggerFactory.getLogger(LoggerBackSample.class);

    public static void main(String[] args) {
        LOGGER.debug("LoggerBackSample 开始执行");
        new LoggerBackSample().method1();
        LOGGER.debug("LoggerBackSample 执行结束");
    }

    public void method1() {
        LOGGER.info("This is info method1()");
        LOGGER.debug("This is debug method1()");
        LOGGER.warn("This is warn method1()");
        LOGGER.error("This is error method1()");
    }
}
